package com.zkingsoft.dao;

import org.apache.ibatis.annotations.Param;
import com.zkingsoft.plugin.pojo.PaginationVO;
import java.util.List;
import com.zkingsoft.model.Need;


/**
 * 
 * @description 需求Dao
 * @author chenxianzi
 * @date 2016年12月22日
 */


public interface NeedDao{

	public int insert(Need need);
   	
	public int update(Need need);
	
	public int deleteByIds(@Param("list") List<Long> list);
	
	public int deleteById(Long id);

	public int deleteByModel(@Param("record") Need need);
	
	public List<Need> selectInPage(@Param("record") Need need, @Param("pageVo") PaginationVO pageVo);

	public List<Need> selectByModel(@Param("record") Need need);
	
	public int  selectTotalRecord(@Param("record") Need need);
	
	public Need  selectById(Long id);
	
}